package com.sms.client.utils;


import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.PopupPanel;
public class LoadingBox extends PopupPanel{
	
	
	private static LoadingBox loadingBox  = new LoadingBox();
	
	public static LoadingBox getSharedInstance(){
		return loadingBox;
	}
	
	
	private LoadingBox() {
		super();
		init();
	}

	private void init() {
		//initialize the loading images
		
		Image loadingImage = new Image("./images/loading.gif");
		//loadingImage.setPixelSize(54, 55);
		super.add(loadingImage);
		super.setGlassEnabled(true);
		super.setSize("150", "55");
		super.setStyleName("loadingPanel");
		super.center();
		
	}
	@Override
	public void show(){
		super.show();
	}
	@Override
	public void hide(){
		System.err.println("Inside Hide() ");
			super.hide();
	}
}

